#include <QObject>
#include <QString>
#include <QByteArray>

#include "../CodecInterface.h"

class TextCodec : public QObject, public CodecInterface
{
	Q_OBJECT
	Q_INTERFACES(CodecInterface)

public:
	TextCodec();
	~TextCodec();
	QString    decode(const QByteArray&, const bool toServer);
	QByteArray encode(const QString&,    const bool toServer);
	QString codecName();
	QString codecDesc();
	TParams params();
	void setParams(TParams&);
	void showParamsDialog();

private:
	QString escape(const char&);
};

// kate: space-indent off; tab-indents on; indent-width 4; indent-mode cstyle;
